import {HttpGet, HttpPost} from "@/api/index.js";

/**
 * 添加岗位
 * @param post
 * @constructor
 */
export const add = (post) => {
    return HttpPost("/admin/system/post/add", post)
}

/**
 * 添加岗位
 * @param post
 * @constructor
 */
export const edit = (post) => {
    return HttpPost("/admin/system/post/update", post)
}

/**
 * 删除岗位
 * @param id
 * @constructor
 */
export const deleteById = (id) => {
    return HttpPost("/admin/system/post/deleteById/" + id)
}

/**
 * 岗位分页列表
 * @param search
 * @constructor
 */
export const pageList = (search) => {
    return HttpGet("/admin/system/post/listPage", search)
}

/**
 * 岗位列表
 * @param search
 */
export const list = (search) => {
    return HttpGet("/admin/system/post/list", search)
}